#include <QtCore/QCoreApplication>
#include <QtGui/QApplication>
#include <QFile>
#include <QDebug>

#include "NetworkTester.h"
#include "networkfactory.h"

/*int main()
{
    int N = 100000;
    int burn = 10000;

    // build network
    Network * network = NetworkFactory::buildNetwork(NetworkFactory::POPCORN); //SIMPLE_BERNOULLI, BURGLAR, WACKY, GOLFERS, FACULTY

    // generate samples
    network->generateSamples(N, burn);

    // mixing should occur before stats since stats will sort the data    
    network->plotMixingGraphs(QString("out"));
    network->computeStats(100, true);
    network->plotHistograms(QString("out"));

    // display point estimators
    network->print();

    return 0;
}*/

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    NetworkTester::testAll();

    a.exec();

    return 0;
}
